package com.example.jiemian.UI;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.example.jiemian.R;
import com.example.jiemian.bean.Luntan;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class YueduiActivity extends AppCompatActivity {
    @BindView(R.id.rl_back)
    RelativeLayout rlBack;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.tv_right)
    ImageView tvRight;
    @BindView(R.id.image_head)
    ImageView imageHead;
    @BindView(R.id.tv_biaoti)
    TextView tvbiaoti;
    @BindView(R.id.tv_didian)
    TextView tv_didian;

    @BindView(R.id.tv_yuedui)
    TextView tv_yuedui;
    @BindView(R.id.tv_gequ)
    TextView tv_gequ;
    Luntan luntan;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_yuedui);
        ButterKnife.bind(this);
        tvTitle.setText("乐队信息");
        luntan=(Luntan)getIntent().getSerializableExtra("detail");
        tvbiaoti.setText(luntan.getBiaoti());
        tv_didian.setText(luntan.getLeixing());
        tv_yuedui.setText(luntan.getContent());
        tv_gequ.setText(luntan.getTime());
        Glide.with(YueduiActivity.this).load(luntan.getPic()).into(imageHead);
    }

    @OnClick({R.id.rl_back})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.rl_back:
                finish();
                break;

        }
    }
}